
<h3 class="page-header">项目添加人员
<!-- <a href="" class="ajax-modal-sm">+</a> -->
</h3>

<div class="table-responsive">
<table class="table table-hover table-bordered">
<thead>
<tr>
	<th width="200">项目名称</th>
	<th>团队成员</th>
	<th>空缺职位</th>
    <th>添加成员</th>

</tr>
</thead>
<tbody id="cat-list">
<?php foreach ($pro as $item):?>
<tr>
	<td><?= $item['project_name'] ?></td>
	<td>
        <?php foreach ($item['users'] as $u):?>
        职位:<?= $u['name'] ?>--<?= $u['username'] ?>,
        <?php endforeach;?>
    </td>
    <td>
        <?php if (is_array($item['Vacancy_occupation'])):?>
        <?php foreach ($item['Vacancy_occupation'] as $u):?>
            <?= $u['name'] ?><?= $u['num'] ?>,
        <?php endforeach;?>
        <?php else:?>
            <?= $item['Vacancy_occupation'] ?>
        <?php endif;?>
    </td>
	<td>
        <?php if (is_array($item['Vacancy_occupation'])):?>
        <a href="<?= URL::site('projectUser/addUser?id='.$item['zhiweiID']).'&pid='.$item['id'];?>" class="btn btn-info btn-xs ajax-modal-sm">添加成员</a>
        <?php else:?>
        <button disabled="disabled" class="btn btn-info btn-xs ajax-modal-sm">添加成员</button>
        <?php endif;?>
    </td>

<!--<td><a href="--><?//= $item['file_name'] ?><!--">下载观看</a></td>-->
<!--	<td>--><?//= date('Y-m-d',$item['create_time']) ?><!--</td>-->
<!--    <td>-->
<!--        <a href="--><?//= URL::site('plan/addPosition?id='.$item['project_id']);?><!--" class="btn btn-info btn-xs ajax-modal-sm">修改</a>-->
<!--        <a href="--><?//= URL::site('plan/updatePosition?id='.$item['project_id']);?><!--" class="btn btn-info btn-xs ajax-modal-sm">查看添加职位</a>-->
<!--    </td>-->
<!--    <td>-->
<!--        <a href="--><?//= URL::site('plan/addEquipment?id='.$item['project_id']);?><!--" class="btn btn-info btn-xs ajax-modal-sm">修改</a>-->
<!--        <a href="--><?//= URL::site('plan/updateDevice?id='.$item['project_id']);?><!--" class="btn btn-info btn-xs ajax-modal-sm">查看添加器材</a>-->
<!---->
<!--    </td>-->
<!--    <td width="180px">-->
<!--        --><?//= $item['u_name'] ?>
<!--    </td>-->
<!--	<td>-->
<!--        --><?php //if ($item['producer_state']=='1'):?>
<!--            <a href="--><?//= URL::site('plan/disable?id='.$item['id']);?><!--" class="btn btn-info btn-xs ajax-update">已确认</a>&nbsp;&nbsp;&nbsp;-->
<!--        --><?php //else:?>
<!--            <a href="--><?//= URL::site('plan/enable?id='.$item['id']);?><!--" class="btn btn-danger btn-xs ajax-update">未确认</a>&nbsp;&nbsp;&nbsp;-->
<!--        --><?php //endif;?>
<!--	</td>-->
</tr>
<?php endforeach;?>
</tbody>
</table>
<?//=  $pager;?>
</div>

